carat M isn't this symbol ^ that you think, it can only be produced by typing "Ctrl-v, Ctrl-m". That you might see in text files saved from Windows.
tofrodos is the package that has dos2unix which is basically the same scripts that replace ^M with /n
tofrodos is the Debian/Buntu package name which has the dos2unix and unix2dos binaries
convert, carat, text, linuxcarat, isn, produced, typing, quot, ctrl, tofrodos, dos, unix, scripts, debian, buntu, binaries,